<?php
class Form_Login extends Zend_Form
{
	/**
	  * Initialize function
	  */
	public function init()
	{
		$username = $this->createElement( "text", "username", array("label" => "Username", "size" => 25) );
		$password = $this->createElement("text", "password", array("label" => "Username", "size" => 25));
		$submitButton = $this->createElement("submit", "Login");
		$this->addElement($username)
			 ->addElement($password)
			 ->addElement($submitButton);
	}
	
	/**
	  * Welcome Action
	  */
	public function welcomeAction()
	{
		$user = Zend_Auth::getInstance();
		$info = $user->getIdentity();
		$this->view->username = $info->username;
		
	}
	
}